<template>
    <van-popup v-model:show="popup.show" position="right">
        <div class="popup-right">
            <slot></slot>
        </div>
    </van-popup>
</template>
<script setup>
import { reactive } from "@vue/reactivity";
import { defineExpose } from "vue";
const popup = reactive({
    show: false
})
function init () {
    console.log("点击了哦")
    popup.show = !popup.show
}
defineExpose({
    init,
});
</script>
<style>
.popup-right {
    max-height: 100vh;
    height: 100vh;
    width: 250px;
}
</style>